var app = angular.module('loginApp', ['ngResource']);
app.config(['$resourceProvider', function ( $resourceProvider ) {
    $resourceProvider.defaults.transformRequest = function ( data ) {
        var str = '';
        for( var i in data ) {
            str += i + '=' + data[i] + '&';
        }
        return str.substring(0,str.length-1);
    }
}]);